package com.lpx.demo.demo.common;

import com.lpx.demo.demo.util.JsonResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;

/**
 * 附件上传
 */
@Controller
@RequestMapping("/file")
public class UploadController {
    /**
     * 上传
     * @return
     */
    @RequestMapping(value = "/uploadFile")
    public JsonResult uploadFile(MultipartFile file) {
        return JsonResult.success();
    }
}
